<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            width: 600px;
            text-align: center;
        }

        table,
        th,
        td {
            border: 1px solid #ccc;
            border-collapse: collapse;
        }

        caption {
            font-size: 18px;
            margin-bottom: 10px;
            font-weight: 700;
        }

        tr {
            height: 40px;
            cursor: pointer;
        }

        table tr:nth-child(1) {
            background-color: #ddd;
        }

        table tr:not(:first-child):hover {
            background-color: #eee;
        }
    </style>

</head>

<body>




    <script>



        let students = [
            { name: '小明', age: '19', gemder: '男', homet: '河北' },
            { name: '小鸡', age: '16', gemder: '女', homet: '天津' },
            { name: '小美', age: '13', gemder: '中立', homet: '上海' },
            { name: '小太', age: '11', gemder: '不详', homet: '河南' }
        ]
        // 就是高级，就是牛，就是看不懂 会用工作加1000
        for (let [i, e] of students.entries()) {
            document.write(`
            <table>
            <tr>
                <th>${i + 1}</th>
                <th>${e.name}</th>
                <th>${e.age}</th>
                <th>${e.gemder}</th>
                <th>${e.homet}</th>
                </tr>
                <br>
</table>
            `)
        }
    </script>
</body>

</html>